<?php

namespace Admin\Controller;


class IndexController extends CommonController
{
    public function index()
    {
        $stock = M('stock')->where(['stock' => ['LT', 1]])->find();

        if (!empty($stock)) {
            echo "<script> alert('已有库存原料不足，请速速查看');</script>";
        }
        $this->display();
    }
}